package com.dog.dao.impl;

import com.dog.dao.LevelSalaryDAO;
import com.dog.model.LevelSalary;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;

/**
 * User: Kuttubek Aidaraliev
 * Date: 13.05.2010
 * Time: 12:22:54
 */
@Repository
public class LevelSalaryDAOImpl extends DAOImpl<LevelSalary>
        implements LevelSalaryDAO{

    @Autowired
    public SessionFactory sessionFactory;

    public LevelSalaryDAOImpl() {
        super(LevelSalary.class);
    }

    @PostConstruct
    public void initialize(){
        this.setSessionFactory(sessionFactory);
    }
}
